#include<stdio.h>

int main() {
	//NOTE: EOF -> ctrl+d
	//NOTE: enter is a sign as well
	int c;
	int charnumber = 0;

	printf("Couting characters number\n");
	printf("EOF > ctrl+d will close input\n");
	printf("Enter some characters: ");

	while((c = getchar()) != EOF) {
		charnumber++;
	}
	printf("\nNumber of character: %d\n", charnumber);

}
